<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix='sec' uri='http://www.springframework.org/security/tags' %>
<%@page import="com.gosophia.commons.web.bean.RequestResult"%>
<%
	String path = request.getContextPath();
	Object sessionObj = session.getAttribute("_lastOpResult");
	RequestResult requestResult = null;
	if(sessionObj != null)
		requestResult = (RequestResult) sessionObj;
	request.setAttribute("requestResult", requestResult);
	session.removeAttribute("_lastOpResult");
%>
<script type="text/javascript">
	var _opresult = ${requestResult == null ? "''" : requestResult};
	var exceptionMsg = "${exception.faultInfo.message}";
	var exceptionCode="${exception.faultInfo.exceptionErrCode}";
	if(exceptionMsg.length > 0)
		_opresult = {result: exceptionCode.length <= 0 ? 2 : exceptionCode, message: exceptionMsg};
</script>
<div class="top">
	<img class="logo" src="<%=path %>/image/logo_blue.gif"></img>
	<div class="inner-right">
		<div id="inner-top">
			<div id="topBar">
				<span class="account-info">
					<span class="account-desktop">
						<a id="_showDesktop" style="font-weight: bold;display: none;text-decoration: none">我的桌面</a>
					</span>
					<span class="account-username">
						<sec:authentication property="principal.userAccountDTO.userInfoDTO.userName"/>
					</span>
					<span class="account-logout">
						<a href="<%=path %>/j_spring_security_logout">注销</a>
					</span>
				</span>
			</div>
		</div>
		<div id="homeSearch" class="inner-bottom">
			<div id="search">
				<input type="text" class="shadow"/>
				<button class="special search"></button>
			</div>
		</div>
	</div>
</div>